package com.cloud.sky.entity.common;

/**
 * @author Tyrone
 * @date 2024/7/14 17:19
 */
public enum ResultCode {

    success(200, "success"),
    failure(5001, "failure"),
    validationFail(5002, "参数校验失败"),
    ;


    private Integer code;
    private String msg;

    ResultCode(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }

}
